<div class="cl pd-5 bg-1 bk-gray"> 
	<span class="r">共有数据：<strong>{$count}</strong> 条</span>
</div>
<table class="table table-border table-bordered table-hover table-bg">
	<thead>
		<tr class="text-c">
			<th width="25"><input type="checkbox" value="" name=""></th>
			<th width="25">ID</th>
			<th>房间号</th>
			<th>合同号</th>
			<th>用户名</th>
			<th>类型</th>
			<th>收费月份</th>
			<th>租金</th>
			<th>物业费</th>
			<th>水费</th>
			<th>电费</th>
			<th>气费</th>
			<th>应缴金额</th>
			<th>费用截止时间</th>
			<th>催缴次数</th>
			<th>催缴时间</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
		<?php if(is_array($list) && count($list)){ ?>
			<?php foreach($list as $k=>$ls){ ?>
				<tr class="text-c">
					<td><input type="checkbox" value="" name=""></td>
					<td width="40"><?php echo ($page-1)*C('PAGE_SIZE')+($k+1); ?></td>
					<td>{$ls['roomnumber']}</td>
					<td>{$ls['contract']}</td>
					<td>{$ls['member_nick']}</td>
					<td>{$ls['order_type'] == 1 ? '固定' : '日常'}</td>
					<td>{$ls['month']}</td>
					<td><p class="c-primary">{$ls['rent']}</p></td>
					<td><p class="c-error">{$ls['property']}</p></td>
					<td><p class="c-success">{$ls['rates1']}</p></td>
					<td><p class="c-success">{$ls['rates2']}</p></td>
					<td><p class="c-success">{$ls['rates3']}</p></td>
					<td>{$ls['account']}</td>
					<td>
						<?php if($ls['lastcalltime'] == '1970-01-01'){ ?>
						{$ls['end_time'] <= 0 ? '---' : $ls['end_time']|date='Y-m-d', ###}
						<?php }else{ ?>
						{$ls['lastcalltime']}
						<?php } ?>
					<td>{$ls['cjcount']}</td>
					<td>{$ls['cjtime'] > 0 ? $ls['cjtime']|date="Y-m-d", ### : '--'}</td>
					<td>
						<a href="javascript:;" class="btn btn-warning radius size-S" onclick="sendmsg(this, '{$ls['order_id']}');">催缴</a> 
					</td>
				</tr>
			<?php }?>
		<?php }else{ ?>
		<tr class="text-c">
			<td colspan="19" >暂无数据...{$xu}</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<!--page-->
<include file="Common/page" />
<script type="text/javascript">
	$(document).ready(function(){
		/*全选*/
		$("table thead th input:checkbox").on("click" , function(){
			$(this).closest("table").find("tr > td:first-child input:checkbox")
					.prop("checked",$("table thead th input:checkbox")
					.prop("checked"));
	    });
	});
</script>